package oop.a01oop.a02Polymorphism;

public class Dog extends Animal{

    public Dog() {
    }

    public Dog(int age, String color) {
        super(age, color);
    }

    public void eat(String something){
        System.out.println(getAge()+"岁的"+getColor()+"狗抱住大腿在吃"+something);
    }

    public void lookHome(){
        System.out.println("看家");
    }
}
